<div id="editor">
<form method="post" action="op.php">
<input type=hidden name=op value=admin>
<input type=hidden name=fp value=lotto>
<input type=hidden name=cmd value="{cmd}">
<input type=hidden name=oldopen value="{open}">
<input type=hidden name=id value="{id}">

<table border="0" id="table1" cellspacing="0" cellpadding="4">
	<tr>
		<td valign="top"> 期 数 </td>
		<td><input type="text" name="round" size="20" value="{round}" {calc_ok}></td>
	</tr>
	<tr>
		<td valign="top">开奖日期</td>
		<td><input type="text" id="open" name="open" size="20" value="{open}" {calc_ok}>
		    <a href="javascript:void(0);" onclick="return showCalendarById('open')"><img 
            align=absmiddle src="class/calendar/calendar.png" border=0 alt=""></a>
        </td>
	</tr>
	<tr>
		<td valign="top">开奖结果</td>
		<td>
		<input type="text" name="n1" size="2" maxlength="2" value="{n1}" {calc_ok}>
		<input type="text" name="n2" size="2" maxlength="2" value="{n2}" {calc_ok}>
		<input type="text" name="n3" size="2" maxlength="2" value="{n3}" {calc_ok}>
		<input type="text" name="n4" size="2" maxlength="2" value="{n4}" {calc_ok}>
		<input type="text" name="n5" size="2" maxlength="2" value="{n5}" {calc_ok}>
		<input type="text" name="n6" size="2" maxlength="2" value="{n6}" {calc_ok}></td>
		</tr>
	<tr>
		<td valign="top">特别号</td>
		<td><input type="text" name="spec" size="2" maxlength="2" value="{spec}" {calc_ok}></td>
	</tr>
	<tr>
		<td colspan="2"><input type="submit" value="确定" name="B1" {calc_ok}>&nbsp;
		<input type="button" value="颁奖" onclick="calc()" {calc}>&#12288;
		<input type="reset" value="重新设定" name="B2" {calc_ok}>
		</td>
	</tr><p>
	<tr><td>&#12288;</td></tr><p>
	<tr>
		<td colspan="2"><input {stopnowdisable1} type=button value="正码停止下注" onclick="location.replace('op.php?op=admin&fp=lotto&cmd=stopnow1&id={id}')">
		<input {stopnowdisable0} type=button value="全部停止下注" onclick="location.replace('op.php?op=admin&fp=lotto&cmd=stopnow0&id={id}')">
		</td>
	</tr>
</table>
</form>
</div>

<div id="wait" style="color:red;font-weight:bold; display: none">
<span id="countdownstr"></span>
</div>

<script>
var timestap = {bet_count1};
var betcount = {bet_count2};
countdown();

function countdown()
{
    timediff = timestap;
	secs = Math.floor(timediff);
    str = "总下注笔数："+betcount+"<br><br>颁奖过帐计算中，预估 ";
    str += secs + " 秒完成，请稍候...... <br><br><br><br><br><br><h3>★ 过帐预估完成的时间仅供参考之用 ★<br>★ 过帐作业尚未确实完成之前请勿执行任何选项或离开本颁奖视窗 ★</h3>"; //
    countdownstr.innerHTML =  str;
    setTimeout("countdown()",1000)
    timestap-=1;
	if (timestap < 0) {
		timestap = 0;
	}
}

function calc()
{
    document.all.editor.style.display = "none";
    document.all.wait.style.display = "";
    
    location.replace('?op=admin&fp=calc&id={id}');
}
</script>